﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

using com.vs.DataAccess;
using com.vs.DataAccess.DO;

namespace com.vs.General.BL
{
    public class ConfigValueManager
    {
        public static string GetConfigValue(Session sess, string stRecordType, string stKey)
        {
            ConfigValueDO cvDO = null;

            try
            {
                cvDO = ConfigValueDO.GetModelByPK(sess, stRecordType, stKey);
                return cvDO.VALUE;
            }
            catch(Exception e)
            {
                ExceptionManager.LogException(sess, e);
                return null;
            }
        }
    }
}
